import React,{Fragment} from 'react';
import {BrowserRouter, Switch} from 'react-router-dom';
import Menu from "./page/Menu";
import routes from "./page/routes";
import {library} from "@fortawesome/fontawesome-svg-core";
import {faSearch} from "@fortawesome/free-solid-svg-icons";
library.add(faSearch);

function App() {
  return (
      <Fragment>
          <BrowserRouter>
              <Menu />
              <Switch>
                  {routes}
              </Switch>
          </BrowserRouter>
      </Fragment>
  );
}

export default App;
